package first.group.ssh;

import java.io.IOException;
import java.nio.channels.ReadableByteChannel;

public interface DataConsumer {
    int fillData(ReadableByteChannel channel) throws IOException;
    
    default int fillData(byte[] data) throws IOException {
        return fillData(data, 0, data.length);
    }
    
    int fillData(byte[] data, int off, int len) throws IOException;
}
